/**
 * 
 */
package com.java.test.paymanage.dto;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

/**
 * @author Administrator
 *
 */
public class OnlinePayInfo implements RowMapper<OnlinePayInfo> {

	// 主键
	private int id;

	// 支付类型
	private int payTypeValue;

	// 支付类型名称
	private String payTypeName;

	// 支付渠道名称
	private String paychannelName;

	// 打开方式
	private String openMode;

	// 终端
	private String terminal;

	// 支付额度
	private String payQuota;

	// 开放层级
	private String openSlice;
	
	// 层级名称
	private String openSliceName;

	// 状态 （1：启用，0：禁用）
	private int status;

	// 当前排序
	private int sort=0;

	private int payChannelValue;
	
	

	public String getOpenSliceName() {
		return openSliceName;
	}

	public void setOpenSliceName(String openSliceName) {
		this.openSliceName = openSliceName;
	}

	public int getPayChannelValue() {
		return payChannelValue;
	}

	public void setPayChannelValue(int payChannelValue) {
		this.payChannelValue = payChannelValue;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getPayTypeValue() {
		return payTypeValue;
	}

	public void setPayTypeValue(int payTypeValue) {
		this.payTypeValue = payTypeValue;
	}

	public String getPayTypeName() {
		return payTypeName;
	}

	public void setPayTypeName(String payTypeName) {
		this.payTypeName = payTypeName;
	}

	

	public String getPaychannelName() {
		return paychannelName;
	}

	public void setPaychannelName(String paychannelName) {
		this.paychannelName = paychannelName;
	}

	public String getOpenMode() {
		return openMode;
	}

	public void setOpenMode(String openMode) {
		this.openMode = openMode;
	}

	public String getTerminal() {
		return terminal;
	}

	public void setTerminal(String terminal) {
		this.terminal = terminal;
	}

	public String getPayQuota() {
		return payQuota;
	}

	public void setPayQuota(String payQuota) {
		this.payQuota = payQuota;
	}

	public String getOpenSlice() {
		return openSlice;
	}

	public void setOpenSlice(String openSlice) {
		this.openSlice = openSlice;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public int getSort() {
		return sort;
	}

	public void setSort(int sort) {
		this.sort = sort;
	}

	@Override
	public OnlinePayInfo mapRow(ResultSet rs, int rowNum) throws SQLException {
		OnlinePayInfo info  =new OnlinePayInfo();
		
		info.setId(rs.getInt("id"));
		
		info.setOpenMode(rs.getString("open_mode"));
		
		info.setOpenSlice(rs.getString("open_slice"));
		
		info.setPaychannelName(rs.getString("pay_channelname"));
		
		info.setPayQuota(rs.getString("pay_quota"));
		
		info.setPayTypeName(rs.getString("pay_typename"));
		
		info.setPayTypeValue(rs.getInt("pay_typevalue"));
		
		info.setSort(rs.getInt("sort"));
		
		info.setStatus(rs.getInt("status"));
		
		info.setTerminal(rs.getString("terminal"));

		info.setPayChannelValue(rs.getInt("pay_channelvalue"));
		
		return info;
	}

}
